/*
 * @Descripttion: 出手鸭小程序
 * @version:1.0.1 
 * @Author: HHL
 * @Date: 2022-12-01 17:09:29
 * @LastEditTime: 2023-11-24 08:42:01
 * @LastEditors: sueRimn
 */
import {
  BASEHOST,
} from '../../config'
import Request from '../http'

// 根据参数键名查询参数值
export const getByConfigKey = configKey => Request.get(`${BASEHOST}/common/config/getByConfigKey`, { configKey })


// 获取省市区信息
export const fetchRegionTree = () => Request.get(`${BASEHOST}/api/api/region/tree`, {})

// 根据坐标 或 Ip 获取当前城市
export const fetchGeoLocation = data => Request.get(`${BASEHOST}/api/position/parse`, data)

// 获取本机信息
export const fetchDeviceInfo = data => Request.get(`${BASEHOST}/api/evaluate/visitDevice`, data)

// 用户意见反馈
export const fetchFeedback = data => Request.post(`${BASEHOST}/api/suggest/feedback`, data)


// 根据区域获取回收方式
export const fetchRecycleMethod = data => Request.get(`${BASEHOST}/api/evaluate/recycleWay`, data, { cache_maxage: 0 })

//获取设置列表
export const fetchSettingList = data => Request.get(`${BASEHOST}/api/setting/list`, data)
